package com.zcfeng.ischool;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import utils.MyConstaints;
import utils.SPUtils;

public class UserinfoActivity extends AppCompatActivity {
    TextView name;
    TextView id;
    TextView academy;
    TextView professional;
    TextView classroom;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_userinfo);
        name= (TextView) findViewById(R.id.username);
        id= (TextView) findViewById(R.id.userid);
        academy=(TextView)findViewById(R.id.academy);
        professional=(TextView) findViewById(R.id.professional);
        classroom =(TextView) findViewById(R.id.classroom);
        name.setText(SPUtils.getString(getApplicationContext(), MyConstaints.NAME,""));
        id.setText(SPUtils.getString(getApplicationContext(), MyConstaints.ID,""));
        academy.setText(SPUtils.getString(getApplicationContext(), MyConstaints.ACADEMY,""));
        professional.setText(SPUtils.getString(getApplicationContext(), MyConstaints.PROFFESSIONAL,""));
        classroom.setText(SPUtils.getString(getApplicationContext(), MyConstaints.CLASSROOM,""));
    }
    public void  back(View v){
        finish();

    }
}
